import request from "@/utils/request";

const base_url = "/admin/product/image";

export default {
  // 下载
  download: filename => {
    return request({
      url: `${base_url}/download`,
      method: "GET",
      params: { filename }
    });
  },

  // 批量删除图片
  remove: fileList => {
    return request({
      url: `${base_url}/remove`,
      method: "DELETE",
      data: fileList
    });
  }
};
